package com.ali.order.utils;

import com.ali.order.viewmodel.ResultViewModel;

/**
 * @ClassName ResultViewModelUtil
 * @Description TODO
 * @Author Alistair.Chow
 * @date 2018/12/21 17:01
 * @Version 1.0
 */
public class ResultViewModelUtil {
    public static ResultViewModel success(Object object){
        ResultViewModel resultViewModel = new ResultViewModel();
        resultViewModel.setCode(0);
        resultViewModel.setMsg("success");
        resultViewModel.setData(object);
        return resultViewModel;
    }
}
